package com.ssps.mapper;

import com.ssps.entity.Comment;
import com.ssps.entity.Comments;
import com.ssps.entity.Parking;
import com.ssps.entity.ParkingExample;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import org.springframework.web.servlet.view.InternalResourceViewResolver;
import org.w3c.dom.ls.LSInput;

import java.util.List;

@Mapper
@Repository
public interface ParkingMapper {
    long countByExample(ParkingExample example);

    int deleteByExample(ParkingExample example);

    int deleteByPrimaryKey(Integer pid);

    int insert(Parking record);

    int insertSelective(Parking record);

    List<Parking> selectByExample(ParkingExample example);

    Parking selectByPrimaryKey(Integer pid);

    int updateByExampleSelective(@Param("record") Parking record, @Param("example") ParkingExample example);

    int updateByExample(@Param("record") Parking record, @Param("example") ParkingExample example);

    int updateByPrimaryKeySelective(Parking record);

    int updateByPrimaryKey(Parking record);

    List<Comments> selectByUiidComment(Integer uiid);
}